//
//  WFTrialSwitchCell.h
//  WeiFang
//
//  Created by WeiFang  on 2023.
//  Copyright © 2023 WeiFang . All rights reserved.
//

#import "BaseTableViewCell.h"

@class WFTrialSwitchCell;
@class WFTrialSwitchCellModel;

@protocol WFTrialSwitchCellDelegate <NSObject>

- (void)trialSwitchCell:(WFTrialSwitchCell *)cell isOn:(BOOL)isOn;

@end

@interface WFTrialSwitchCell : BaseTableViewCell

@property (nonatomic,weak) id<WFTrialSwitchCellDelegate> delegate;
@property (strong, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UISwitch *mySwitch;
@property (strong, nonatomic) WFTrialSwitchCellModel *model;

@end



#pragma mark - Model

@interface WFTrialSwitchCellModel : NSObject

@property (nonatomic,copy) NSString *title;
@property (nonatomic,assign) BOOL isOn;

+ (WFTrialSwitchCellModel *)ittemModelWithTitle:(NSString *)title isOn:(BOOL)isOn;

@end



